package com.clouddot.baipai.util.viewUtil;

import android.content.Context;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.LinearInterpolator;

import com.clouddot.baipai.R;

/**
 * Created by wxy on 2018/9/5.
 */

public class ViewAnim {

    public static Animation getRotateImg(Context context) {
        Animation loadingAnim = AnimationUtils.loadAnimation(context, R.anim.rotate);
        LinearInterpolator lir = new LinearInterpolator();
        loadingAnim.setInterpolator(lir);

        return loadingAnim;
    }
}
